package com.ruoyi.web.service.serviceImpl;

import com.ruoyi.common.annotation.DataSource;
import com.ruoyi.common.core.domain.entity.ICSPurchaseOrder;
import com.ruoyi.common.enums.DataSourceType;
import com.ruoyi.web.mapper.ICSPurchaseOrderMapper;
import com.ruoyi.web.service.ICSPurchaseOrderService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

@Service
@DataSource(DataSourceType.SLAVE)
public class ICSPurchaseOrderServiceImpl implements ICSPurchaseOrderService {

    @Autowired
    private ICSPurchaseOrderMapper icsPurchaseOrderMapper;


    @Override
    public List<ICSPurchaseOrder> selectAll() {
        return icsPurchaseOrderMapper.selectAll();
    }
}
